Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Changes the function name specified to the set one.
function debug.setname(function: function | number, name: string): ()
setname
local function foo() print("name", debug.info(1, "n")) end foo() -- name foo debug.setname(foo, "bar") foo() -- name bar